from django.contrib import admin

# Register your models here.
from .models import *


class RoleAdmin(admin.ModelAdmin):
    list_display = ('character',)


class UsersAdmin(admin.ModelAdmin):
    list_display = ('openid', 'uphone', 'role')
    search_fields = ('openid',)
    list_display_links = ('openid',)


admin.site.register(Role, RoleAdmin)
admin.site.register(Users, UsersAdmin)
admin.site.register(Openid)
